<template>
  <div class="loading">
    <img width="24" height="24" src="./loading.gif" alt="">
    <p class="desc">{{ title }}</p>
  </div>
</template>

<script>
export default {
  name: 'Loading',
  props: {
    title: {
      type: String,
      default: '拼命加载ing...'
    }
  }
}
</script>

<style lang="scss" scoped>
@import "~@/assets/css/variable.scss";
.loading{
  width: 100px;
  height: 100px;
  border-radius: 10px;
  text-align: center;
  background: rgba(0,0,0, .5);
  img{
    margin-top: 30px;
  }
  .desc{
    margin-top: 10px;
    line-height: 20px;
    font-size: $font-size-small;
    color: $color-text-l;
  }
}
</style>